home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / science / sm32a.zip / LIBRARY / FRAC.LI < prev    next >
Text File  |  1993-11-07  |  126b  |  5 lines

  1. #    frac(x) gives the fractional part of real number x.
  2. #    e.g. frac(2.4) gives 0.4.
  3.  
  4. frac(x_) := if(isreal(x), x-trunc(x))
  5.